package com.ant.common.utils;

/**
 * 统一返回信息类
 */
public class ResponseResult {

    /**
     * 请求状态
     */
    private boolean success = true;

    /**
     * 状态码
     */
    private int status = 200;

    /**
     * 额外信息
     */
    private String message = "";

    /**
     * 携带的数据
     */
    private Object data;

    public ResponseResult() {
    }

    public ResponseResult(Object data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
